/**
 * 数组转对象操作类
 */
export class ArrToObjArr {

  static twoDimensionalArray = (keys: Array<string>, arr: Array<Array<string>>) => {
    const result = arr.map(r => {
      let obj = {};
      keys.forEach((k, i) => {
        obj[k] = r[i];
      })
      return obj;
    })
    return result;
  }
}